package com.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author RJ
 * @date 2022/9/14 11:33
 */
@Repository
public interface IUserDao extends BaseMapper<UserBean> {
    UserBean login(@Param("userName") String userName, @Param("userPwd") String userPwd);

    void updUser(@Param("userId") Integer userId, @Param("userPwd") String userPwd, @Param("userGrade") String userGrade);

    IPage<UserBean> cutUsersByGrade(Page<UserBean> page, @Param("userGrade") String userGrade);
}
